/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.storage.service;

import com.jeesite.common.service.CrudService;
import com.jeesite.modules.storage.dao.TransVisitDao;
import com.jeesite.modules.storage.entity.TransVisit;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 转发访问Service
 */
@Service
@Transactional(readOnly=true)
public class TransVisitService extends CrudService<TransVisitDao, TransVisit> {

	/**
	 * 加入访问
	 * @param transMemberId 转发会员Id
	 * @param memberId 会员Id
	 * @param transActivityId 转发Id
	 * @return
	 */
	@Transactional(readOnly=false)
	public String join(String transMemberId,String memberId, String transActivityId){
		TransVisit transVisit = new TransVisit();
		transVisit.setTransMemberId(transMemberId);
		transVisit.setMemberId(memberId);
		transVisit.settransActivityId(transActivityId);
		super.save(transVisit);
		return "加入成功";
	}
}
